package org.limkokwing.hami.ui.form;

import com.sun.lwuit.Font;
import com.sun.lwuit.Form;
import com.sun.lwuit.Label;
import com.sun.lwuit.TextArea;
import com.sun.lwuit.layouts.BoxLayout;
import org.limkokwing.hami.ui.HamiMIDlet;

/**
 * @author Mohammad
 */
public class HelpFormHandler extends FormHandler {
     public void cleanup() {
     }

    public String getName() {
        return "Help";
    }

    public String getTitle() {
        return "Help";
    }


    public String getHelp() {
        return "The toolkit has support for custom fonts and system/device fonts " +
            "both are fully interchangable and seamless for the developer.";
    }

    protected void execute(Form f) {
        f.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
        TextArea text = new TextArea();
        text.setEditable(false);
        text.setText(HamiMIDlet.getHelp());
        f.addComponent(text);
    }
}
